package cn.iocoder.yudao.module.scrm.controller.admin.schedules.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 排期 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SchedulesRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25197")
    //@ExcelProperty("主键")
    private Long id;

    @Schema(description = "排期名称", example = "李四")
    @ExcelProperty("排期名称")
    private String name;

    @Schema(description = "产品ID", example = "618")
    //@ExcelProperty("产品ID")
    private Long productId;

    @Schema(description = "产品名称", example = "李四")
    @ExcelProperty("产品名称")
    private String productName;

    @Schema(description = "开始时间")
    @ExcelProperty("开始时间")
    @DateTimeFormat(pattern =FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @ExcelProperty("结束时间")
    @DateTimeFormat(pattern =FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime endTime;

    @Schema(description = "地址")
    @ExcelProperty("地址")
    private String address;

    @Schema(description = "席位数量", example = "25910")
    @ExcelProperty("席位数量")
    private Integer seatCount;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    @DateTimeFormat(pattern =FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime createTime;

    @Schema(description = "状态值", example = "1")
    //@ExcelProperty("状态值")
    private Integer status;

    @Schema(description = "状态显示", example = "1")
    @ExcelProperty("状态")
    private String statusName;

    @Schema(description = "老师信息")
    private List<PersonInfo> personInfoList;

    @Schema(description = "剩余席位数量", example = "1")
    private Long  remainingSeats;

    @Schema(description = "创建人名字")
    @ExcelProperty("创建人")
    private String creatorName;

    @Schema(description = "创建人名字")
    @ExcelProperty("创建人部门")
    private String creatorDept;

    @Schema(description = "创建人")
    //@ExcelProperty("创建人id")
    private Long creator;
}